<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>学生信息管理</title>
<link rel="stylesheet" type="text/css"
	href="http://localhost:8080/songtao//resources/jquery/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="http://localhost:8080/songtao//resources/jquery/themes/icon.css">
<script type="text/javascript"
	src="http://localhost:8080/songtao//resources/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="http://localhost:8080/songtao//resources/jquery/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="http://localhost:8080/songtao//resources/jquery/locale/easyui-lang-zh_CN.js"></script>

</head>
<body>
	<div id="toolbar">


		<a href="http://localhost:8080/songtao/logout.shtml"
			class="easyui-linkbutton" iconCls="icon-lock" plain="true">登出</a>
	</div>
	${user }
	<br>
	${status }
	<table border="1" width="1200" align="center">
		<tr>
			<th>学生ID</th>
			<th>姓名</th>
			<th>图片</th>
			<th>性别</th>
			<th>出生日期</th>
			<th>班级ID</th>
			<th>密码</th>
			<th>创建时间</th>
			<th>邮箱</th>
		</tr>

		<tr>
			<td>${user.id }</td>
			<td>${user.name }</td>
			<td><img src="${user.image }"/ height="130" width="70"></td>
			<td>${user.gender==1? '男':'女' }</td>
			<td>${user.date }</td>
			<td>${user.classId }</td>
			<td>${user.password }</td>
			<td>${user.createTime }</td>
			<td>${user.email }</td>
		</tr>
	</table>


<form action="<%=basePath%>user_update.shtml" method="get">
<input type="hidden" name="id" value="${user.id}" />
<label>出生日期 : </label> <input id="date" name="date" type="text" class="easyui-datebox"><br>
<label>邮箱  :  </label><input type="text" name="email"><br>
<label>密码 :  </label><input type="pass" name="password"><br>
<input type="submit" value="修改">
</form>




<form action="<%=basePath%>image_insert.shtml" method ="post" enctype ="multipart/form-data">
		<p>上传照片：<input type="file" name="bigHeadImage"></p>
		<input type="hidden" name="id" value ="${user.id }">
		<p><input type="submit" value="上传"></p>
	</form>







							
</div>



</body>
</html>